/*
 * @Author: chen jiao
 * @Date: 2021-07-06 09:44:21
 * @LastEditTime: 2021-07-30 14:48:33
 * @LastEditors: Please set LastEditors
 * @Description: 会员信息审核数据封装
 * @FilePath: \ebc-admin\src\views\member\config\memberAudit.js
 */
// 会员等级
const grade = [
  { value: '1', title: '普通会员' },
  { value: '2', title: 'VIP会员' },
]
// 会员认证状态
const auths = [
  { value: '0', title: '未认证' },
  { value: '1', title: '已认证' },
]
// 会员审核状态
const status =[
  { value: '0', title: '待审核' },
  { value: '1', title: '已同意' },
  { value: '2', title: '已拒绝' }
]
// 搜索栏配置
export const searchs = [
  { type: 'input', key: 'keyword', value: '', placeholder: '会员编号、姓名、手机' },
  { type: 'select', key: 'levelName', value: '', selectList: grade, placeholder: '会员等级' },
  { type: 'select', key: 'authState', value: '', selectList: auths, placeholder: '实名认证' },
  { type: 'select', key: 'status', value: '', selectList: status , placeholder: '审核状态' }
]
// el-table配置
export const listHedar = [
  { label: '会员编号', prop: 'memberId' },
  { label: '姓名', prop: 'realName' },
  { label: '手机号码', prop: 'mobile' },
  { label: '会员等级', prop: 'levelName' },
  { label: '实名认证', prop: 'authState', isTemplate: true },
  { label: '审核状态', prop: 'status', isTemplate: true },
  { label: '修改人', prop: 'modifierName' },
  { label: '修改时间', prop: 'gmtModified' },
  { label: '操作', prop: 'operate', isTemplate: true, fixed: 'right' }
]
// 审核框配置
export const textList = [
  {type:'audio' ,key:'', title:'语音介绍：'}
]
// 审核拒绝框配置
export const editList = [
  { label:'拒绝原因',key:'reason',type:'textarea' },
]
 // 审核框校验规则
export  const rules = {
  reason: { required: true, message: '请输入拒绝原因' },
  
}
// 会员审核记录搜索框配置
export const searchs2 = [
  { type: 'input', key: 'keyword', value: '', placeholder: '会员编号、会员姓名' },
  
]
// 会员审核记录table配置
export const listHedar2 = [
  { label: '会员编号', prop: 'memberId' },
  { label: '会员姓名', prop: 'realName' },
  { label: '审核状态', prop: 'status' , isTemplate: true },
  { label: '上传时间', prop: 'gmtCreate' },
  { label: '审核人', prop: 'modifierName'},
  { label: '审核时间', prop: 'gmtModified' },
  { label: '拒绝原因', prop: 'reason' },
 
]